package com.zb.yaml;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author WEN
 * @Date 2024/8/21 0021
 **/
@Component
public class HoubanYunSecret {
    private static HoubanYunSecret houbanYunSecret;

    @PostConstruct
    public void init() {
        houbanYunSecret = this;
    }

    @Value("${houbanyun.api_key}")
    private String apiKey;

    @Value("${houbanyun.space_id}")
    private String spaceId;


    public static String getApiKey() {
        return houbanYunSecret.apiKey;
    }

    public static String getSpaceId() {
        return houbanYunSecret.spaceId;
    }
}
